package com.ruoyi.net.constant;

/**
 * Udp 常量配置
 */
public class UdpConstants {
    public static final int UDP_PORT = 7889;

    public static final String UDP_IP = "127.0.0.1";

    public static final int UDP_BUFFER_SIZE = 1024;

    public static final long UDP_POLLING_INTERVAL = 5000; // 轮询间隔，单位：毫秒

    public static final int UDP_TIMEOUT = 2000; // 接收数据的超时时间，单位：毫秒

    public static final String DICT_ALARM_CODE = "dict_alarm_code"; // 告警字典

    public static final int PING_COUNT = 4; // ping次数

    public static final int PING_TIMEOUT = 500; // ping超时时间，毫秒
}